from django.urls import include, path
from rest_framework import routers

from .views import ChemicalPropertiesViewSet,\
    PhysicalPropertiesViewSet,\
    TensileMechanicalPropertiesViewSet,\
    CompressingMechanicalPropertiesViewSet,\
    ShearPropertiesViewSet,\
    BondPropertiesViewSet,\
    TorsionalPropertiesViewSet,\
    FractureToughnessViewSet,\
    FrictionalWearPropertiesViewSet,\
    HardnessViewSet,\
    SampleViewSet,\
    MacroOrganizationViewSet,\
    MicroStructureViewSet,\
    ServicePropertiesViewSet

router = routers.DefaultRouter()
router.register(r'chemical_property', ChemicalPropertiesViewSet)
router.register(r'physical_property', PhysicalPropertiesViewSet)
router.register(r'tensile_property', TensileMechanicalPropertiesViewSet)
router.register(r'compress_property', CompressingMechanicalPropertiesViewSet)
router.register(r'shear_property', ShearPropertiesViewSet)
router.register(r'bond_property', BondPropertiesViewSet)
router.register(r'torsional_property', TorsionalPropertiesViewSet)
router.register(r'fracture_property', FractureToughnessViewSet)
router.register(r'frictional_property', FrictionalWearPropertiesViewSet)
router.register(r'hardness_property', HardnessViewSet)
router.register(r'sample_info', SampleViewSet)
router.register(r'macro_organization', MacroOrganizationViewSet)
router.register(r'micro_structure', MicroStructureViewSet)
router.register(r'service_property', ServicePropertiesViewSet)


urlpatterns = [
    path('', include(router.urls)),
]
